package cn.itcast.ui;

import cn.itcast.factory.BeanFactory;
import cn.itcast.service.IAccountService;
import cn.itcast.service.impl.AccountServiceImpl;

/**
 * 表现层
 * @author zhy
 *
 */
public class Client {

	public static void main(String[] args) {
		IAccountService accountService = BeanFactory.getAccountBean();//层和层之间不要直接联系，而是间接，用代理对象
//		IAccountService accountService = new AccountServiceImpl();
		accountService.transfer("aaa", "bbb", 100f);
	}

}
